package com.onlinexam.service;

import com.onlinexam.pojo.GradeInfo;
import com.onlinexam.pojo.grade.GradeInfo;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 *
 * <p>Title: GradeInfoService</p>
 * <p>Description: </p>
 * @author:王梓鉴
 * @date: 2019-10-29
 * @time: 下午14:44:48
 * @version: 1.0
 */
@Repository
public interface GradeInfoService {

    //获取所有年级
    public List<GradeInfo> getGrades();

    //根据编号获取年级
    public GradeInfo getGradeById(int gradeId);

    //添加年级
    public int isAddGrade(GradeInfo grade);

    //删除年级
    public int isDelGrade(int gradeId);

    //修改年级
    public int isUpdateGrade(GradeInfo grade);
}
